<include file="__THEME__/header" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script type="text/javascript" src="{:U('weibo/plugins/init')}"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.autocomplete.js"></script>


<div class="content"><!-- 内容 begin  --> 
  <include file="__THEME__/center_menu" />
  <div class="main">
    <div class="mainbox">
      <div class="mainbox_C">
        <div style="overflow:hidden;">
         
          <div class="tab-menu"><!-- 切换标签 begin  -->
           
            <ul>
              <li><a id="feed_colleague_item" rel="colleague" class="on feed_item" href="{:U('home/Myshop/index')}"><span>商品列表</span></a></li>
              <li><a id="feed_all_item" rel="all" class="feed_item" href="{:U('home/Myshop/add')}"><span>发布新商品</span></a></li>
            </ul>
          </div>
    
          <div class="feedBox">
            
            <php>if($goods){</php>
            <ul class="feed_list">
            <volist id="vo" name="goods">
              <li class="lineD_btm" id="list_{$vo.id}">
               <div class="left"> <div class="goods_img_box2">
                  <php>if($vo[gimage]){</php>
                  <a href="{:U('shop/index/goods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}"><img src="__UPLOAD__/goods/s_{$vo[gimage]}"/></a>
                  <php>}else{</php>
                  <a href="{:U('shop/index/goods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}"><img src="__THEME__/images/no_image_s.gif" /></a>
                  <php>}</php>
                </div></div>
                <div class="feed_cgoods">
                  <div class="msgCnt">
                  <a href="{:U('shop/index/goods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}">{$vo['title']}</a>
                    </div>
                  <div class="feed_c_btm"> <span class="right">
                    <php>if( $vo['uid'] == $mid ){</php>
                    <a href="javascript:void(0)" onclick="ui.confirm(this,'确认要删除这条信息?')" callback="Deleted({$vo.id})">删除</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="{:U('home/Myshop/edit',array('id'=>$vo['id']))}">编辑</a>
                    <php>}</php>
                    </span>
                    <cite>￥{$vo['gprice']}&nbsp;&nbsp; N {$vo['gnumber']} &nbsp;&nbsp; {$vo.utime|friendlyDate}</cite> </div>
                </div>
              </li>
            </volist>
            <php>}else{</php>
            
            <li> 
              <!--   动态显示方式   -->
              <br/>
              您还未发布任销售信息，点击<a href="{:U('home/Myshop/add')}">这里</a>发布信息</p>
                 
            </li>
            </ul>
            <php>}</php>
            
          </div>
          <div class="page">{$page}</div>
        </div>
        <div class="c"></div>
      </div>
    </div>
  </div>
</div>
<!-- 内容 end --> 
<script>
function Deleted(goods_id){
    $.post(U('home/Myshop/doDel'),{id:goods_id},function(rel){
	    if(rel==1){
		$('#list_'+goods_id).remove();
		ui.success('删除成功');
		ui.box.close();
		}else{
		ui.error('删除失败');		
		}
	
	});	
}
</script>


<include file="__THEME__/footer" /> 